/**
 * CS307 Team 11 Spring 2011
 * @author Kevin Barlow
 * @author David Barnes
 * @author Max Cohen
 * @author Yoongu Kang
 * @author Matt Lathrop
 * @author Thomas Maley
 * 
 * This class takes care of keeping track of the Free Time of a Person
 */
package com.cs307.redcross.client;

import java.io.Serializable;
import java.util.Date;


public class FreeTimeEvent extends Event implements Serializable {

	private static final long serialVersionUID = -4344887360641111684L;

	private int personID;        // person who free time corresponds to
	
	public FreeTimeEvent() {
		this(-1, "", null, null, "", -1);
	}
	
	public FreeTimeEvent(int person, String name, Date startTime, Date endTime, String recurrence, int nextID) {
		super(name, "a free time event", startTime, endTime, recurrence, nextID, null, null);
		this.personID = person;
	}
	
	public FreeTimeEvent(int personID, Date startDate, Date endDate) {
		super("free time", "a free time event", startDate, endDate, "", -1, null, null);
		this.personID = personID;
	}
	
	@Override
	/**
	 * Converts the FreeTimeEvent Object into a String
	 */
	public String toString() {
		return "FreeTimeEvent [id=" + id + ", startTime=" + startTime
				+ ", endTime=" + endTime + ", person=" + personID + ", name="
				+ name + ", recurrence=" + recurrence + ", nextEventID="
				+ nextEventID + "]";
	}
	/**
	 * Returns the id of the FreeTimeEvent
	 * 
	 * @return the id of the FreeTimeEvent
	 */
	public int getId() {
		return this.id;
	}
	
	public int getPerson() {
		return personID;
	}
	
	/*
	// getters *****************************************************
	
	//Can Delete
	public Date getStartTime() {
		return startTime;
	}
	//Can delete
	public Date getEndTime() {
		return endTime;
	}
	//Can Delete
	public String getName() {
		return name;
	}
	
	//Can Delete
	public String getRecurrence() {
		return recurrence;
	}
	


	
	// setters ******************************************************
	//Can Delete
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	//Can Delete
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	//Can Delete
	public void setName(String name) {
		this.name = name;
	}

	//Can Delete
	public void setRecurrence(String recurrence) {
		this.recurrence = recurrence;
	}
	*/
}
